package com.example.mapper;


import com.example.model.Bill;
import com.example.model.BillItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BillMapper {
    @Select("select * from biils where customerId = #{customerId}")
    public List<Bill> selectBillByCustomerId(@Param("customerId") Long customerId);

    @Select("select * from bill_items where billId = #{billId}")
    public List<BillItem> selectBillItemsByBillId(@Param("billId") Long billId);
}
